{dede:config name='pagesize' value='30'/}
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<title>文档模型管理</title>
		<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="../static/web/css/admin.css">
	</head>
	<body>
		<table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3">
			<tr>
				<td>
					<a href="mychannel_add.php" class="btn btn-success btn-sm">添加新模型</a>
					<a href="mychannel_edit.php?dopost=exportin" class="btn btn-success btn-sm">导入模型</a>
					<a href="stepselect_main.php" class="btn btn-success btn-sm">联动类别管理</a>
				</td>
			</tr>
		</table>
		<table cellpadding="3" cellspacing="1" align="center" class="table maintable mb-3">
			<tr>
				<td bgcolor="#f5f5f5" colspan="7">文档模型管理</td>
			</tr>
			<tr bgcolor="#e9ecef" align="center">
				<td width="6%">id</td>
				<td width="18%">栏目名称</td>
				<td width="10%">识别id</td>
				<td width="18%">附加表</td>
				<td width="10%">状态</td>
				<td width="10%">模型</td>
				<td>操作</td>
			</tr>
			{dede:datalist empty='<tr><td colspan="7" align="center">暂无文档</td></tr>'}
			<tr align="center">
				<td>{dede:field.id/}</td>
				<td><a href="mychannel_edit.php?id={dede:field.id/}&dopost=edit">{dede:field.typename/}</a></td>
				<td>{dede:field.nid/}</td>
				<td>{dede:field.addtable function="str_replace('#@__',$cfg_dbprefix,@me)"/}</td>
				<td align="left">{dede:field.isshow function="GetSta(@me,$fields['id'])"/}</td>
				<td>{dede:field.issystem function='IsSystem(@me)'/}</td>
				<td>
					<a href="mychannel_edit.php?id={dede:field.id/}&dopost=gettemplets" class="btn btn-light btn-sm"><i class="fa fa-cube"></i> 模板</a>
					<a href="mychannel_edit.php?id={dede:field.id/}&dopost=copystart" class="btn btn-light btn-sm"><i class="fa fa-clone"></i> 复制</a>
					<a href="mychannel_edit.php?id={dede:field.id/}&dopost=export" class="btn btn-light btn-sm"><i class="fa fa-share-square-o"></i> 导出</a>
					<a href="mychannel_edit.php?mid={dede:field.id/}&dopost=modifysearch" class="btn btn-light btn-sm"><i class="fa fa-search"></i> 搜索</a>
					<a href="mychannel_edit.php?id={dede:field.id/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square"></i> 修改</a>
					<a href="mychannel_edit.php?id={dede:field.id/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除</a>
				</td>
			</tr>
			{/dede:datalist}
			<tr bgcolor="#f5f5f5" align="center">
				<td colspan="7">{dede:pagelist listsize='6'/}</td>
			</tr>
		</table>
	</body>
</html>